<h1>Editing iteration</h1>

<%= error_messages_for :iteration %>

<% form_for(@iteration) do |f| %>
  <p>
    <b>Project</b><br />
    <%= f.text_field :project_id %>
  </p>

  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Objectives</b><br />
    <%= f.text_area :objectives %>
  </p>

  <p>
    <b>Start date</b><br />
    <%= f.date_select :start_date %>
  </p>

  <p>
    <b>End date</b><br />
    <%= f.date_select :end_date %>
  </p>

  <p>
    <b>Work units</b><br />
    <%= f.text_field :work_units %>
  </p>

  <p>
    <b>Report sent</b><br />
    <%= f.check_box :report_sent %>
  </p>

  <p>
    <b>Created by</b><br />
    <%= f.text_field :created_by %>
  </p>

  <p>
    <b>Updated by</b><br />
    <%= f.text_field :updated_by %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @iteration %> |
<%= link_to 'Back', iterations_path %>
